/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.guobo.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * rfid编码规则Entity
 * @author wudavid
 * @version 2017-03-09
 */
public class Rfid extends DataEntity<Rfid> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 编码
	public String name;         // 名称
	private String description; // 描述	
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Rfid() {
		super();
	}

	public Rfid(String id){
		super(id);
	}

	@Length(min=0, max=64, message="编码长度必须介于 0 和 64 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
}